//
//  UIColor+HexStringToColor.h
//  SmartGate
//
//  Created by fred on 14-8-19.
//  Copyright (c) 2014年 fred. All rights reserved.
//
#import <UIKit/UIKit.h>


typedef NS_ENUM(NSUInteger, GradientType) {// 渐变方向
    GradientTypeTopToBottom      = 0,//从上到下
    GradientTypeLeftToRight      = 1,//从左到右
    GradientTypeUpleftToLowright = 2,//左上到右下
    GradientTypeUprightToLowleft = 3,//右上到左下
};


@interface UIColor (Expanded)

+(UIColor *) hexStringToColor: (NSString *) stringToConvert;
+(UIColor *) hexStringToColor: (NSString *) stringToConvert andAlpha:(CGFloat)alpha;

+(UIColor *)defaultBackGroundColor;
+(UIColor *)commonBackGroundColor;
+(UIColor *)defaultTitleWordColor;
+(UIColor *)defaultContentWordColor;
/** 渐变色 */
+ (UIColor *)gradientColors:(NSArray*)colors
gradientType:(GradientType)gradientType location:(CGFloat)location
     imgSize:(CGSize)imgSize;
@end
